|
hbridge18 2.2.1
|
H-Bridge 18 Click example. More...
Macros | |
| #define | MIKROBUS_POSITION_HBRIDGE18 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
H-Bridge 18 Click example.
This example demonstrates the operation of the H-Bridge 18 Click board, which provides control over two DC motors using an H-Bridge driver. The application initializes the board and alternates between different motor states, including forward, reverse, coast, and braking, to demonstrate bidirectional motor control.
The demo application is composed of two sections:
Initializes the logger and the H-Bridge 18 Click board. Configures the motor driver to the default settings, preparing it for operation.
Alternates motor states in a sequence to demonstrate different control functionalities. The motors are set to move forward and reverse, followed by coasting and braking, repeating the cycle continuously.
| #define MIKROBUS_POSITION_HBRIDGE18 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |